home *** CD-ROM | disk | FTP | other *** search
- /* ein minimales XACC-Programm sieht nun in etwa so aus:*/
-
- #include <aes.h>
- #include "xacc.h"
-
- short quit;
-
- main()
- {
- const char name[] = "mein Programm";
- short event, msgbuf[8];
-
- appl_init();
- xacc_init( -1, name, sizeof( name ), 0x0000 );
- for ( quit = 0; !quit ; ) {
- event = evnt_multi( MU_MESAG, ..., msgbuf, ... );
- if ( event & MU_MESAG ) {
- if ( !xacc_message( msgbuf ) ) switch ( msgbuf[0] ) {
- ...
- }
- }
- }
- xacc_exit();
- appl_exit();
- return 0;
- }
-